package com.tongzhan.entity.religion;

import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 请销假实体类
 * @author wn
 * @date 2020/07/16
 */
@Data
@Document(collection = "Leave")
public class Leave extends BaseModel {
    @PrimaryKey
    @Field("LeaveCode")
    private String leaveCode;
    @Field("UserName")
    private String userName;
    @Field("RealName")
    private String realName;
    @Field("LeaveName")
    private String leaveName;
    @Field("StreetCode")
    private String streetCode;
    @Field("StreetName")
    private String streetName;
    @Field("VillageCode")
    private String villageCode;
    @Field("VillageName")
    private String villageName;
    @Field("SiteCode")
    private String siteCode;
    @Field("SiteName")
    private String siteName;
    @Field("ReligionCode")
    private String religionCode;
    @Field("ReligionName")
    private String religionName;
    @Field("StartTime")
    private LocalDate startTime;
    @Field("EndTime")
    private LocalDate endTime;
    @Field("OverTime")
    private String overTime;//销假时间
    @Field("Describe")
    private String describe;//请假事由
    @Field("GroupExamine")
    private String groupExamine;//团体审核状态：待审核 同意 不同意
//    @Field("DirectorExamine")
//    private String directorExamine;//民宗局审核状态：待审核 同意 不同意
    @Field("CancelState")
    private String cancelState;//销假状态：未销假 已销假
    @Field("Time")
    private LocalDateTime time;
    @Field("UpdateTime")
    private LocalDateTime updateTime;
}
